package service;

import java.io.IOException;
import java.util.List;

import org.json.JSONObject;

import domain.User;

public interface IMessageService {
	void analysis(JSONObject json, Integer senderId) throws IOException;

	void dispatch(JSONObject json, Integer receivederId) throws IOException;

	void onLineBroadCast(User onLineUser);

	void offLineBroadCast(User offLineUser);

	void roomInviteDispatch(User inviter, Integer invitee, Integer roomId);

	void chaterEnterDispatch(List<User> user, User enterUser, Integer roomId);

	void chaterOutDispatch(List<User> user, User outerUser, Integer roomId);

	void closeRoomDispatch(Integer roomId, User user);

	void chatDispatch(User user, Integer roomId, String text);

	void roomDispatch(Integer roomId, JSONObject json);
}
